package com.taotao.controller;

import com.taotao.common.pojo.TaotaoResult;
import com.taotao.service.ItemParamItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class ItemParamItemController {
	@Autowired
	private ItemParamItemService itemParamItemService;

	@ResponseBody
	@RequestMapping("/rest/item/param/item/query/{id}")
	public TaotaoResult getItemParamItemByItemId(@PathVariable("id") long itemId) {
		TaotaoResult result = itemParamItemService
				.getItemParamItemByItemId(itemId);

		return result;
	}
}
